package com.blue.prepose.controller;

import com.blue.prepose.entity.PayConfig;
import com.blue.prepose.service.PayConfigService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 支付配置表(PayConfig)表控制层
 *
 * @author xiaoyiming
 * @since 2020-05-09 00:47:57
 */
@RestController
@RequestMapping("payConfig")
public class PayConfigController {
    /**
     * 服务对象
     */
    @Resource
    private PayConfigService payConfigService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public PayConfig selectOne(Long id) {
        return this.payConfigService.queryById(id);
    }

}